package eval.cm.xml.parser.simple.parser;

import eval.cm.xml.parser.simple.Document;

/**
 * Defines the xml parser contract.
 * Methods by which a string representing the xml format
 * is transformed into a structural representation of it.
 * @author constantin
 *
 */
public interface Parser {
	
	/**
	 * Parses the xml content pro
	 * @param xmlContent The xml content being parsed as a String
	 * @return A {@link Document} instance
	 * @throws XmlParsingException when the xml content provided is not valid
	 */
	Document parse(String xmlContent)
		throws XmlParsingException;

}
